package org.linlinjava.litemall.admin.vo.merchandise;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 原料 Excel 导入 VO
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免导入有问题
public class MerchandiseImportExcelVO {

    @ExcelProperty("原料编号")
    private String serial;

    @ExcelProperty("原料分类")
    private String classification;

    @ExcelProperty("原料标签")
    private String label;

    @ExcelProperty("原料品牌")
    private String brand;

    @ExcelProperty("原料名称")
    private String name;

    @ExcelProperty("属性(颜色)")
    private String property;

    @ExcelProperty("规格型号")
    private String standard;

    @ExcelProperty("基础单位")
    private String baseUnit;

    @ExcelProperty("盘点单位")
    private String checkUnit;

    @ExcelProperty("原料进价（/进货单位）")
    private BigDecimal purchasePrice;

    @ExcelProperty("原料售价（/进货单位）")
    private BigDecimal sellingPrice;

    @ExcelProperty("原料数量(/进货单位)")
    private Double number;

    @ExcelProperty("进货单位")
    private String unit;

    @ExcelProperty("进货单位/盘点单位")
    private Integer ratio;

    @ExcelProperty("盘点单位/基础单位")
    private Integer checkRatio;

}
